diff options
author | odersky <odersky@gmail.com> | 2016-03-09 14:59:30 +0100 |
---|---|---|
committer | odersky <odersky@gmail.com> | 2016-03-09 14:59:30 +0100 |
commit | 163b06f5a4cf6fd41fbeb6c75dc8482092b9b33a (patch) | |
tree | af32b2c26830e24cc4437fe9c6da011e255811ad /tests/pos | |
parent | bdd8c35447aa92969abf1dbaf479b6995fdfb7f4 (diff) | |
parent | f1348f79566277ce72e1e4e070bf94a54b0f787e (diff) | |
download | dotty-163b06f5a4cf6fd41fbeb6c75dc8482092b9b33a.tar.gz dotty-163b06f5a4cf6fd41fbeb6c75dc8482092b9b33a.tar.bz2 dotty-163b06f5a4cf6fd41fbeb6c75dc8482092b9b33a.zip |
Merge pull request #1153 from dotty-staging/vc-companions
Fix for separate compilation with value class issue (#1137)
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i1137-1/A_1.scala | 1 | ||||
-rw-r--r-- | tests/pos/i1137-1/B_2.scala | 3 | ||||
-rw-r--r-- | tests/pos/i1137-2/A_1.scala | 3 | ||||
-rw-r--r-- | tests/pos/i1137-2/B_2.scala | 4 | ||||
-rw-r--r-- | tests/pos/i1137-3/A_1.scala | 2 | ||||
-rw-r--r-- | tests/pos/i1137-3/B_2.scala | 3 |
6 files changed, 16 insertions, 0 deletions
diff --git a/tests/pos/i1137-1/A_1.scala b/tests/pos/i1137-1/A_1.scala new file mode 100644 index 000000000..e50bef651 --- /dev/null +++ b/tests/pos/i1137-1/A_1.scala @@ -0,0 +1 @@ +class A(val self: Double) extends AnyVal diff --git a/tests/pos/i1137-1/B_2.scala b/tests/pos/i1137-1/B_2.scala new file mode 100644 index 000000000..644d5bd1d --- /dev/null +++ b/tests/pos/i1137-1/B_2.scala @@ -0,0 +1,3 @@ +object B { + def foo: A = new A(1) +} diff --git a/tests/pos/i1137-2/A_1.scala b/tests/pos/i1137-2/A_1.scala new file mode 100644 index 000000000..e87b31e02 --- /dev/null +++ b/tests/pos/i1137-2/A_1.scala @@ -0,0 +1,3 @@ +object ATest { + class A(val self: Double) extends AnyVal +} diff --git a/tests/pos/i1137-2/B_2.scala b/tests/pos/i1137-2/B_2.scala new file mode 100644 index 000000000..9a3b013d3 --- /dev/null +++ b/tests/pos/i1137-2/B_2.scala @@ -0,0 +1,4 @@ +object B { + import ATest._ + def foo: A = new A(1) +} diff --git a/tests/pos/i1137-3/A_1.scala b/tests/pos/i1137-3/A_1.scala new file mode 100644 index 000000000..96b66e594 --- /dev/null +++ b/tests/pos/i1137-3/A_1.scala @@ -0,0 +1,2 @@ +class A(val self: Double) extends AnyVal +object A diff --git a/tests/pos/i1137-3/B_2.scala b/tests/pos/i1137-3/B_2.scala new file mode 100644 index 000000000..644d5bd1d --- /dev/null +++ b/tests/pos/i1137-3/B_2.scala @@ -0,0 +1,3 @@ +object B { + def foo: A = new A(1) +} |