diff options
author | Paul Phillips <paulp@improving.org> | 2012-09-04 09:32:32 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-04 09:48:22 -0700 |
commit | ccbc51d3a07cccccb996254a68ed870d6831c511 (patch) | |
tree | 7e09f4554bd146561c0a110c6eab5560c8e4055f /test/files/pos | |
parent | 074c0bdf3cc269e89539d753359d59358fe3479c (diff) | |
download | scala-ccbc51d3a07cccccb996254a68ed870d6831c511.tar.gz scala-ccbc51d3a07cccccb996254a68ed870d6831c511.tar.bz2 scala-ccbc51d3a07cccccb996254a68ed870d6831c511.zip |
Test case for SI-6301.
And misc changes/comments based on pull request feedback
from @retronym.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t6301.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t6301.scala b/test/files/pos/t6301.scala new file mode 100644 index 0000000000..fa81bbfa77 --- /dev/null +++ b/test/files/pos/t6301.scala @@ -0,0 +1,9 @@ +trait LoadedOver[@specialized(Int) A] { + def foo(x: Any): A + def foo(xs: String): A +} + +object Test { + def loaded: AnyRef with LoadedOver[Int] = sys.error("") + loaded.foo("") +} |