Corrected comments binding so that comments before local functions and classes are bound to them

This commit is contained in:
Valentin Kipyatkov
2014-10-03 18:32:12 +04:00
parent 9a8aa0f71a
commit b811a6cab4
5 changed files with 77 additions and 9 deletions
+8
View File
@@ -31,6 +31,14 @@ class D {
// Function foo()
fun foo(/* parameters */ p1: Int/* p1 */, p2: Int /* p2 */) {
// before local var
val local = 1 // local var
// before local fun
fun localFun() = 1 // local fun
// before local class
class Local{} // local class
// before statement
foo() // statement
} // end of foo
// class object