Display Quick Documentation for reserved words
#KT-9934 Fixed
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
<caret>lateinit var foo: String
|
||||
}
|
||||
|
||||
//INFO: lateinit allows initializing a <a href="http://kotlinlang.org/docs/reference/properties.html#late-initialized-properties-and-variables">non-null property outside of a constructor</a>
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
val <caret>lateinit: String = ""
|
||||
}
|
||||
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://Foo"><code>Foo</code></a><br>public final val <b>lateinit</b>: String</pre></div>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<caret>tailrec fun foo() {
|
||||
foo()
|
||||
}
|
||||
|
||||
//INFO: tailrec marks a function as <a href="http://kotlinlang.org/docs/reference/functions.html#tail-recursive-functions">tail-recursive</a> (allowing the compiler to replace recursion with iteration)
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
val <caret>tailrec: String = ""
|
||||
}
|
||||
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://Foo"><code>Foo</code></a><br>public final val <b>tailrec</b>: String</pre></div>
|
||||
Reference in New Issue
Block a user