Permalink
Browse files

Test case for SI-5106.

  • Loading branch information...
paulp committed May 4, 2012
1 parent 5c84dc8 commit f146d5826fc335ee1ca9c285d69086a7475cb71e
Showing with 16 additions and 0 deletions.
  1. +11 −0 test/files/neg/t5106.check
  2. +5 −0 test/files/neg/t5106.scala
View
@@ -0,0 +1,11 @@
+t5106.scala:3: error: type mismatch;
+ found : Int(4)
+ required: String
+ val (n, l): (String, Int) = (4, "")
+ ^
+t5106.scala:3: error: type mismatch;
+ found : String("")
+ required: Int
+ val (n, l): (String, Int) = (4, "")
+ ^
+two errors found
@@ -0,0 +1,5 @@
+class A {
+ def f {
+ val (n, l): (String, Int) = (4, "")
+ }
+}

0 comments on commit f146d58

Please sign in to comment.