Skip to content

Commit 2744447

Browse files
committed
Add test case for #3470
1 parent a3b0f45 commit 2744447

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/neg/i3470.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
object Main {
2+
abstract class Factory[T <: Int] {
3+
def size: T
4+
def create: Array[T] = Array.ofDim(size) // error: No ClassTag available
5+
}
6+
}

0 commit comments

Comments
 (0)