Tuple migration quick fix now appears only on tupels shorter than 4

Longer tuples exhibit another error message.
Messages adjusted for compiler and IDE
This commit is contained in:
Andrey Breslav
2012-09-19 15:29:40 +04:00
parent 0ccdf79051
commit bd0eab5202
9 changed files with 33 additions and 13 deletions
@@ -1,6 +1,6 @@
// "Migrate tuples in project: e.g., #(,) and #(,,) will be replaced by Pair and Triple" "true"
// ERROR: Tuples are not supported. Press Alt+Enter to replace tuples with library classes
// ERROR: Tuples are not supported. Press Alt+Enter to replace tuples with library classes
// ERROR: <html>Tuples are not supported.<br/>Use data classes instead. For example:<br/><b>data class</b> FourThings(<b>val</b> a: A, <b>val</b> b: B, <b>val</b> c: C, <b>val</b> d: D)</html>
// ERROR: <html>Tuples are not supported.<br/>Use data classes instead. For example:<br/><b>data class</b> FourThings(<b>val</b> a: A, <b>val</b> b: B, <b>val</b> c: C, <b>val</b> d: D)</html>
fun foo2() : <caret>#(Int, Int) {
return #(1, 1)