Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

37 lines
743 B
C#

using System;
namespace Bugs
{
class Bug0
{
struct MyBoolean
{
private bool value;
public MyBoolean(bool value)
{
this.value = value;
}
public static implicit operator MyBoolean(bool value)
{
return new MyBoolean(value);
}
public static implicit operator bool(MyBoolean b)
{
return b.value;
}
}
public static int Main()
{
MyBoolean b = true;
if (true && b)
{
return 0;
}
else
{
return 100;
}
}
}
}