We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f50c1f7 commit 2c9e845Copy full SHA for 2c9e845
tests/pos/seqtype-cycle/Test1.scala
@@ -0,0 +1,3 @@
1
+class Test {
2
+ def bar = Array(1) // call to Array(_: Repeated)
3
+}
tests/pos/seqtype-cycle/Test2.scala
@@ -0,0 +1,8 @@
+package object scala {
+ // needed for some reasons
+ type Throwable = java.lang.Throwable
4
+ type IndexOutOfBoundsException = java.lang.IndexOutOfBoundsException
5
+
6
+ type Seq[+A] = scala.collection.Seq[A]
7
+ val Seq = scala.collection.Seq
8
tests/pos/seqtype-cycle/Test3.scala
@@ -0,0 +1,12 @@
+package scala
+class specialized(types: Int*) extends scala.annotation.StaticAnnotation
+package collection {
+ class Foo[@specialized(1, 2) A]
+ trait Seq[A] extends Foo[A]
9
+ object Seq extends SeqFactory[Seq]
10
11
+ trait SeqFactory[CC[X] <: Seq[X]]
12
0 commit comments