diff options
author | Miles Sabin <miles@milessabin.com> | 2016-05-06 12:39:13 +0100 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2016-05-06 12:39:13 +0100 |
commit | 5faad77ccebb41e9674b103d499de927c0dba662 (patch) | |
tree | 04f2d34611e0f3bbe194ce9883923d85e35bf00f /test/files/neg/hkgadt.check | |
parent | fa65623cd8d4e60368126fc958c7185ca5706a6b (diff) | |
download | scala-5faad77ccebb41e9674b103d499de927c0dba662.tar.gz scala-5faad77ccebb41e9674b103d499de927c0dba662.tar.bz2 scala-5faad77ccebb41e9674b103d499de927c0dba662.zip |
Added pos test with multiple cases; added neg tests.
Diffstat (limited to 'test/files/neg/hkgadt.check')
-rw-r--r-- | test/files/neg/hkgadt.check | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/files/neg/hkgadt.check b/test/files/neg/hkgadt.check new file mode 100644 index 0000000000..ef302a9abf --- /dev/null +++ b/test/files/neg/hkgadt.check @@ -0,0 +1,31 @@ +hkgadt.scala:7: error: type mismatch; + found : scala.collection.immutable.Set[Int] + required: F[Int] + case Bar() => Set(1) + ^ +hkgadt.scala:13: error: type mismatch; + found : Boolean(true) + required: A + case Bar1() => true + ^ +hkgadt.scala:24: error: type mismatch; + found : scala.collection.immutable.Set[Int] + required: F[Int] + case Bar() => Set(1) + ^ +hkgadt.scala:25: error: type mismatch; + found : List[Int] + required: F[Int] + case Baz() => List(1) + ^ +hkgadt.scala:32: error: type mismatch; + found : Boolean(true) + required: A + case Bar1() => true + ^ +hkgadt.scala:33: error: type mismatch; + found : Int(1) + required: A + case Baz1() => 1 + ^ +6 errors found |