Fix for KT-12892 J2K: Wrong placing of comments when constructor converted to primary constructor & init
This commit is contained in:
@@ -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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user