diff options
Diffstat (limited to 'tests/bugs150/pr107858.aj')
-rw-r--r-- | tests/bugs150/pr107858.aj | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/bugs150/pr107858.aj b/tests/bugs150/pr107858.aj new file mode 100644 index 000000000..2b107e4dd --- /dev/null +++ b/tests/bugs150/pr107858.aj @@ -0,0 +1,12 @@ +class Foo { + Foo field; + void test() {} +} + +public aspect pr107858 { + void around() : call(void Foo.test()) { + Foo foo = new Foo().field; + proceed(foo); // caught at compile time + proceed(new Foo().field); // crashes + } +}
\ No newline at end of file |