New J2K: Clearer return type for recurse
This commit is contained in:
committed by
Ilya Kirillov
parent
6fd2cc73cf
commit
aef8a7a8f1
+1
-1
@@ -23,7 +23,7 @@ abstract class RecursiveApplicableConversionBase : MatchBasedConversion() {
|
||||
|
||||
abstract fun applyToElement(element: JKTreeElement): JKTreeElement
|
||||
|
||||
inline fun recurse(element: JKTreeElement): JKTreeElement {
|
||||
inline fun <T : JKTreeElement> recurse(element: T): T {
|
||||
return applyRecursive(element, ::applyToElement)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user