Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4905801

Browse files
authored
Merge pull request #10182 from som-snytt/issue/7481-nospec-array
2 parents cd52542 + 69bff24 commit 4905801

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/files/pos/t7481.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
// scalac: -no-specialization
3+
4+
object Test {
5+
// val fixesCompile = Array(1, 2, 3)
6+
7+
def foo: Any = new Array[Byte](0)
8+
9+
def f[@specialized(Int) A](a: A): A = a
10+
}

0 commit comments

Comments
 (0)