Skip to content

Commit 3642b93

Browse files
authored
Merge pull request scala#7466 from diesalbla/bug_10228
Add Regression test for Bug t10228
2 parents 1bf19cd + f37e564 commit 3642b93

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/files/neg/t10228.check

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
t10228.scala:9: error: malformed type: A#Type
2+
def g[A <: Fili[A]]: Unit = implicitly[A <:< A#Type]
3+
^
4+
one error found

test/files/neg/t10228.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
object t10228 {
2+
trait Data { self =>
3+
type Type >: self.type <: Data
4+
}
5+
trait DataF[P <: Data, A <: DataF[P, A]] extends Data { type Type = P#Type }
6+
7+
type Fili[A <: Data] = DataF[A, A]
8+
9+
def g[A <: Fili[A]]: Unit = implicitly[A <:< A#Type]
10+
}

0 commit comments

Comments
 (0)