diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2017-04-10 10:58:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-10 10:58:22 +0200 |
commit | d9c3bd53433f202f0123733613baf3a382076323 (patch) | |
tree | a9c6c5858a59bc4e4144bbc5887245f3365db65a /test/files/neg/ambiguous-same.scala | |
parent | 1ef37f0bc18be5ed2ca8c33c0ea1912eed5dac3e (diff) | |
parent | ed63344a2dae7731c01737102fbe12b7ad10ba77 (diff) | |
download | scala-d9c3bd53433f202f0123733613baf3a382076323.tar.gz scala-d9c3bd53433f202f0123733613baf3a382076323.tar.bz2 scala-d9c3bd53433f202f0123733613baf3a382076323.zip |
Merge pull request #5838 from som-snytt/issue/2458
SI-2458 Make spec example live test
Diffstat (limited to 'test/files/neg/ambiguous-same.scala')
-rw-r--r-- | test/files/neg/ambiguous-same.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/ambiguous-same.scala b/test/files/neg/ambiguous-same.scala new file mode 100644 index 0000000000..50dba71f67 --- /dev/null +++ b/test/files/neg/ambiguous-same.scala @@ -0,0 +1,15 @@ + +// When faced with ambiguities between imports, +// an attempt is made to see if the imports intend +// identical types. +// +// Here, no attempt is made to notice that x +// names the same thing. +// +object X { + val x = 42 + def f = { + import X.x + x + } +} |