diff options
Diffstat (limited to 'test/files/run/t7341.scala')
-rwxr-xr-x | test/files/run/t7341.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t7341.scala b/test/files/run/t7341.scala new file mode 100755 index 0000000000..dc526c6c19 --- /dev/null +++ b/test/files/run/t7341.scala @@ -0,0 +1,15 @@ +object Obj { + private var cache: Any = () + def returning(f: () => Unit) = () + def foo { + returning(() => cache = ()) + } + + def apply(): Any = { + cache + } +} + +object Test extends App { + Obj() +} |