Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2212 from dragos/fix/SI-7224
Fix SI-7224.
- Loading branch information
Showing
3 changed files
with
169 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** This tests that hyperlinking works for super types. See SI-7224 */ | ||
class BadPos[A](a: A) | ||
|
||
class Base | ||
|
||
trait Trait extends Base | ||
trait SubTrait extends Trait | ||
trait LateralTrait extends Base | ||
|
||
object obj1 extends BadPos/*#*/(new Object) | ||
object obj2 extends BadPos/*#*/[AnyRef](new Object) | ||
object obj3 extends Trait/*#*/ | ||
object obj4 extends SubTrait/*#*/ | ||
object obj5 extends Trait/*#*/ with LateralTrait/*#*/ | ||
object obj6 extends Base/*#*/ with Trait/*#*/ with LateralTrait/*#*/ | ||
|
||
class PBase[A] | ||
|
||
trait PTrait[A] extends PBase/*#*/[A] | ||
trait PSubTrait[A] extends PTrait/*#*/[A] | ||
trait PLateralTrait[A] extends PBase/*#*/[A] | ||
|
||
object pobj2 extends PTrait/*#*/[Int] | ||
object pobj3 extends PSubTrait/*#*/[Int] | ||
object pobj4 extends PTrait/*#*/[Int] with PLateralTrait/*#*/[Int] | ||
object pobj5 extends PBase/*#*/[Int] with PTrait/*#*/[Int] with PLateralTrait/*#*/[Int] | ||
|
||
class c1 extends BadPos/*#*/(new Object) | ||
class c2 extends PTrait/*#*/[Int] | ||
class c3 extends PSubTrait/*#*/[Int] | ||
class c4 extends PTrait/*#*/[Int] with PLateralTrait/*#*/[Int] | ||
class c5 extends PBase/*#*/[Int] with PTrait/*#*/[Int] with PLateralTrait/*#*/[Int] |