Create a class such as the following.
package test
class TestClass {
def testFn:(List[TestClass], Int) = ???
}
Now Refactor -> Rename TestClass to TestClass0. This is what I get.
package test
class TestClass0 {
def testFn:([List[TestClass0], Int]) = ???
}
Note the extra pair of '[' ... ']' inside the return type so that it is no longer a tuple -- or any valid type at all.
package test
class TestClass {
def testFn:(List[TestClass], Int) = ???
}
Now Refactor -> Rename TestClass to TestClass0. This is what I get.
package test
class TestClass0 {
def testFn:([List[TestClass0], Int]) = ???
}
Note the extra pair of '[' ... ']' inside the return type so that it is no longer a tuple -- or any valid type at all.
Leave a comment
on 2014-06-04 20:35 *
By huitseeker
Version changed from 3.0.1-210 to 3.0.4-211
Status changed from New to Accepted
Ticket assignment reverted due to inactivity.
Be more careful when printing type arguments
Don't surround the type arguments of tuples with brackets, unless they are
explicitly referred to as `scala.TupleX` in the source.
Fixes #1001932
Branch: master
Commit: scala-ide:69a18959ca
Don't surround the type arguments of tuples with brackets, unless they are
explicitly referred to as `scala.TupleX` in the source.
Fixes #1001932
Branch: master
Commit: scala-ide:69a18959ca
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|