summaryrefslogtreecommitdiff
path: root/test/files/run/t7319.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2016-04-07 12:32:40 -0700
committerSom Snytt <som.snytt@gmail.com>2016-05-02 10:36:43 -0700
commit86ae2f95ce33ef22f9c9ad40d6a966fbef7d352f (patch)
tree848f206dcd7b7f6461cec183aef136e8ead30b57 /test/files/run/t7319.check
parentcf3850626a62ce7aefad129b3af5c8184c7226a6 (diff)
downloadscala-86ae2f95ce33ef22f9c9ad40d6a966fbef7d352f.tar.gz
scala-86ae2f95ce33ef22f9c9ad40d6a966fbef7d352f.tar.bz2
scala-86ae2f95ce33ef22f9c9ad40d6a966fbef7d352f.zip
SI-9740 Repl import fix -Yrepl-class-based
Under `-Yrepl-class-based`, templating must follow the same scoping as under traditional object-based. The new test shows a typical case where two values of the same simple name must be imported in different scopes.
Diffstat (limited to 'test/files/run/t7319.check')
-rw-r--r--test/files/run/t7319.check6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/t7319.check b/test/files/run/t7319.check
index 4d8429e8f2..31923e7119 100644
--- a/test/files/run/t7319.check
+++ b/test/files/run/t7319.check
@@ -15,21 +15,21 @@ warning: there was one feature warning; re-run with -feature for details
convert: [F[X <: F[X]]](builder: F[_ <: F[_]])Int
scala> convert(Some[Int](0))
-<console>:16: error: no type parameters for method convert: (builder: F[_ <: F[_]])Int exist so that it can be applied to arguments (Some[Int])
+<console>:15: error: no type parameters for method convert: (builder: F[_ <: F[_]])Int exist so that it can be applied to arguments (Some[Int])
--- because ---
argument expression's type is not compatible with formal parameter type;
found : Some[Int]
required: ?F[_$1] forSome { type _$1 <: ?F[_$2] forSome { type _$2 } }
convert(Some[Int](0))
^
-<console>:16: error: type mismatch;
+<console>:15: error: type mismatch;
found : Some[Int]
required: F[_ <: F[_]]
convert(Some[Int](0))
^
scala> Range(1,2).toArray: Seq[_]
-<console>:15: error: polymorphic expression cannot be instantiated to expected type;
+<console>:14: error: polymorphic expression cannot be instantiated to expected type;
found : [B >: Int]Array[B]
required: Seq[_]
Range(1,2).toArray: Seq[_]