summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-exmethod-18.cs
blob: d4cc4a5bed1f5f71eba43f1a504003680bed9e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;

class Foo {
	public bool IsBar {
		get { return false; }
	}
}

static class FooExt {

	public static bool IsBar (this Foo f)
	{
		return f.IsBar;
	}
}

class Repro {

	public static void Main ()
	{
		var f = new Foo ();
		Console.WriteLine (f.IsBar ());
	}
}