diff options
author | Martin Odersky <odersky@gmail.com> | 2016-09-01 17:31:10 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-10-02 16:11:21 +0200 |
commit | 8a3762a62d12b7f57de27c840425184df56b2689 (patch) | |
tree | 35db0a16b8361568290c20dcb5d215af7178cc62 /tests/run | |
parent | d63a6ba8540fb8ea7d01350ea68ff1ef0b53c5d4 (diff) | |
download | dotty-8a3762a62d12b7f57de27c840425184df56b2689.tar.gz dotty-8a3762a62d12b7f57de27c840425184df56b2689.tar.bz2 dotty-8a3762a62d12b7f57de27c840425184df56b2689.zip |
Add Inlined tree node
... to tag inlined calls. Perform typings and transformations
of inlined calls in a context that refers to the INlined node
in its InlinedCall property.
The idea is that we can use this to issue better error
positions. This remains to be implemented.
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/inlineTest.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/run/inlineTest.scala b/tests/run/inlineTest.scala index feaa43fbb..39153951e 100644 --- a/tests/run/inlineTest.scala +++ b/tests/run/inlineTest.scala @@ -33,8 +33,9 @@ object Test { def f = "Outer.f" class Inner { val msg = " Inner" + @dotty.annotation.inline def m = msg @dotty.annotation.inline def g = f - @dotty.annotation.inline def h = f ++ this.msg + @dotty.annotation.inline def h = f ++ m } } @@ -46,7 +47,8 @@ object Test { val o = new Outer val i = new o.Inner - println(i.g) + println(i.m) + //println(i.g) //println(i.h) } |