Skip to content

Commit 1a50c45

Browse files
committed
Add unit test for i3470
1 parent adbf639 commit 1a50c45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/neg/i3470.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
trait Factory[T <: Int]{
2+
def size: T
3+
def create: Array[T] = Array.ofDim(size) // error
4+
}

0 commit comments

Comments
 (0)