fca4f13be6/org.scala-refactoring.library/src/test/scala/scala/tools/refactoring/tests/implementations/imports/OrganizeImportsFullyRecomputeTest.scala
| 799e54613b3a098cb99a0ecbbd544c44faebfe7a | fca4f13be6a79d9efa6228576a8d231680ac6346 | ||
|---|---|---|---|
770 | } | 770 | } |
771 | """ | 771 | """ |
772 | } applyRefactoring organize | 772 | } applyRefactoring organize |
773 | |||
774 | @Test | ||
775 | def typeConstructors = new FileSet { | ||
776 | """ | ||
777 | trait Property[+T] | ||
778 | |||
779 | class A { | ||
780 | type Prop_Tp[+Vl_Tpe] <: Property[Vl_Tpe] | ||
781 | def properties: Set[Prop_Tp[_]] = null.asInstanceOf[Set[Prop_Tp[_]]] | ||
782 | } | ||
783 | """ becomes | ||
784 | """ | ||
785 | trait Property[+T] | ||
786 | |||
787 | class A { | ||
788 | type Prop_Tp[+Vl_Tpe] <: Property[Vl_Tpe] | ||
789 | def properties: Set[Prop_Tp[_]] = null.asInstanceOf[Set[Prop_Tp[_]]] | ||
790 | } | ||
791 | """ | ||
792 | } applyRefactoring organize | ||
773 | } | 793 | } |
Download diff