diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-02-03 14:51:19 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-02-03 14:59:17 +0100 |
commit | 76ce7c7b1275bded2ca59052b99d743b5c993d6d (patch) | |
tree | d752875a0c6d5582ad30f7fca78db4b7ee6205d4 /tests/pos/lazyValsSepComp.scala | |
parent | a6640ab780ab42ea7bc011dd6e58b487a1b616aa (diff) | |
download | dotty-76ce7c7b1275bded2ca59052b99d743b5c993d6d.tar.gz dotty-76ce7c7b1275bded2ca59052b99d743b5c993d6d.tar.bz2 dotty-76ce7c7b1275bded2ca59052b99d743b5c993d6d.zip |
Fix problems with lazy vals and separate compilation
Somehow this error manifested itself in a quite weird way during erasure.
So it was hard to track down
Diffstat (limited to 'tests/pos/lazyValsSepComp.scala')
-rw-r--r-- | tests/pos/lazyValsSepComp.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pos/lazyValsSepComp.scala b/tests/pos/lazyValsSepComp.scala new file mode 100644 index 000000000..337447280 --- /dev/null +++ b/tests/pos/lazyValsSepComp.scala @@ -0,0 +1,16 @@ +package dotty.tools +package io + +import java.io.{ InputStream } +import java.util.jar.JarEntry +import dotty.tools.dotc.core.Definitions +import language.postfixOps +import dotty.tools.dotc.core.Contexts._ + + +/** A test to trigger issue with separate compilation between Dotty and Scalac and lazy vals */ +object Foo { + val definitions: Definitions = null + def defn = definitions + def go = defn.FunctionClass(0) +} |