a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
22 lines
290 B
C#
22 lines
290 B
C#
using System;
|
|
|
|
class SuperDecimal{
|
|
private Decimal val;
|
|
|
|
public SuperDecimal (Decimal val)
|
|
{
|
|
this.val = val;
|
|
}
|
|
|
|
public static implicit operator SuperDecimal (Decimal val)
|
|
{
|
|
return new SuperDecimal (val);
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
int i = 2;
|
|
SuperDecimal sd = i;
|
|
}
|
|
}
|