diff options
author | Antonio Cunei <antonio.cunei@epfl.ch> | 2011-03-20 23:43:39 +0000 |
---|---|---|
committer | Antonio Cunei <antonio.cunei@epfl.ch> | 2011-03-20 23:43:39 +0000 |
commit | cf2ad5308cd095521f45aa88d9fe8981ff4717a6 (patch) | |
tree | 3e7e7ab8b5b5171a59bf2ff59e805ac811c715c3 /test | |
parent | ea94126e2dd5aa62d54ca894a785b1814c432441 (diff) | |
download | scala-cf2ad5308cd095521f45aa88d9fe8981ff4717a6.tar.gz scala-cf2ad5308cd095521f45aa88d9fe8981ff4717a6.tar.bz2 scala-cf2ad5308cd095521f45aa88d9fe8981ff4717a6.zip |
Merged revisions 24518-24521,24523 via svnmerge...
Merged revisions 24518-24521,24523 via svnmerge from
https://lampsvn.epfl.ch/svn-repos/scala/scala/trunk
........
r24518 | extempore | 2011-03-20 06:24:23 +0100 (Sun, 20 Mar 2011) | 2 lines
Restored erasure warning for isInstanceOf tests. Closes #4302, no
review. ........ r24519 | odersky | 2011-03-20 08:35:58 +0100 (Sun, 20
Mar 2011) | 1 line
Commented #3928 patch.
........
r24520 | rytz | 2011-03-20 10:12:02 +0100 (Sun, 20 Mar 2011) | 1 line
minor fix for -Xmax-classfile-name. no review
........
r24521 | magarcia | 2011-03-20 11:55:55 +0100 (Sun, 20 Mar 2011) | 1 line
for .NET bootstrapping (more coming). review by rytz. ........ r24523
| magarcia | 2011-03-20 15:08:34 +0100 (Sun, 20 Mar 2011) | 3 lines
The last checkin caused a test to time-out, but that test runs fine
locally. I'm giving Jenkins another chance.
Like the previous changeset, this one has to do with .NET
bootstrapping. review by rytz. ........
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/bug4302.check | 4 | ||||
-rw-r--r-- | test/files/neg/bug4302.flags | 1 | ||||
-rw-r--r-- | test/files/neg/bug4302.scala | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/bug4302.check b/test/files/neg/bug4302.check new file mode 100644 index 0000000000..ca33748cfd --- /dev/null +++ b/test/files/neg/bug4302.check @@ -0,0 +1,4 @@ +bug4302.scala:2: error: abstract type T in type T is unchecked since it is eliminated by erasure + def hasMatch[T](x: AnyRef) = x.isInstanceOf[T] + ^ +one error found diff --git a/test/files/neg/bug4302.flags b/test/files/neg/bug4302.flags new file mode 100644 index 0000000000..779916d58f --- /dev/null +++ b/test/files/neg/bug4302.flags @@ -0,0 +1 @@ +-unchecked -Xfatal-warnings
\ No newline at end of file diff --git a/test/files/neg/bug4302.scala b/test/files/neg/bug4302.scala new file mode 100644 index 0000000000..53565f05c2 --- /dev/null +++ b/test/files/neg/bug4302.scala @@ -0,0 +1,3 @@ +object Test { + def hasMatch[T](x: AnyRef) = x.isInstanceOf[T] +} |