[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / test-548.cs
blobf732fed9d57baf5c2332d143966f04388c79640f
1 using System;
3 namespace Bugs
5 class Bug0
7 struct MyBoolean
9 private bool value;
10 public MyBoolean(bool value)
12 this.value = value;
14 public static implicit operator MyBoolean(bool value)
16 return new MyBoolean(value);
18 public static implicit operator bool(MyBoolean b)
20 return b.value;
24 public static int Main()
26 MyBoolean b = true;
27 if (true && b)
29 return 0;
31 else
33 return 100;