Fix for KT-12892 J2K: Wrong placing of comments when constructor converted to primary constructor & init

This commit is contained in:
Simon Ogorodnik
2016-10-18 12:17:11 +03:00
parent b51f5c5bd9
commit 7c8fdc42b4
10 changed files with 112 additions and 11 deletions
@@ -26,4 +26,24 @@ class B {
} // end of constructor body
void foo(){}
}
class CtorComment {
public String myA;
/*
* The magic of comments
*/
// single line magic comments
public CtorComment() {
myA = "a";
}
}
class CtorComment2 {
/*
* The magic of comments
*/
// single line magic comments
public CtorComment() {}
}