Skip to content

Two new tests #279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/dotc/tests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class tests extends CompilerTest {
@Test def neg_cycles = compileFile(negDir, "cycles", xerrors = 8)
@Test def neg_boundspropagation = compileFile(negDir, "boundspropagation", xerrors = 4)
@Test def neg_refinedSubtyping = compileFile(negDir, "refinedSubtyping", xerrors = 2)
@Test def neg_i0091_infpaths = compileFile(negDir, "i0091-infpaths", xerrors = 3)
@Test def neg_i0248_inherit_refined = compileFile(negDir, "i0248-inherit-refined", xerrors = 4)

@Test def dotc = compileDir(dotcDir + "tools/dotc", twice)(allowDeepSubtypes)
Expand Down
16 changes: 16 additions & 0 deletions tests/neg/i0091-infpaths.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
object infpaths {

object a {
trait T { t =>
type M <: t.b.M
type T <: a.T
val b: t.T
}
val x: a.T = ???
}

val m1: a.x.M = ???
val m2: a.x.b.M = m1
val m3: a.x.b.b.M = m2

}
1 change: 1 addition & 0 deletions tests/pos/fbounds.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
class A [ T <: A[_] & Number]