diff options
author | Martin Odersky <odersky@gmail.com> | 2016-10-05 14:05:11 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-10-05 14:05:11 +0200 |
commit | 0093c5d5ddcc4d3ce5ba24c41419a042f2e482ff (patch) | |
tree | ac2c4d16e952030e704bb096bd1e58fc96c3d176 /tests | |
parent | e7954376c245d42e0e70df501c73c3d5971db41e (diff) | |
download | dotty-0093c5d5ddcc4d3ce5ba24c41419a042f2e482ff.tar.gz dotty-0093c5d5ddcc4d3ce5ba24c41419a042f2e482ff.tar.bz2 dotty-0093c5d5ddcc4d3ce5ba24c41419a042f2e482ff.zip |
Add test case
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/inlineUnit.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/inlineUnit.scala b/tests/pos/inlineUnit.scala new file mode 100644 index 000000000..e4f135db7 --- /dev/null +++ b/tests/pos/inlineUnit.scala @@ -0,0 +1,7 @@ +object Test { + inline def foo: Int = 1 + + def test: Unit = { + foo + } +} |