Minor: added a comment
This commit is contained in:
@@ -421,7 +421,7 @@ public class Renderers {
|
|||||||
" that cannot be satisfied capturing 'in' projection";
|
" that cannot be satisfied capturing 'in' projection";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
explanation = "Only top level type projections can be captured";
|
explanation = "Only top-level type projections can be captured";
|
||||||
}
|
}
|
||||||
result.text(newText().normal("'" + typeParameterWithCapturedConstraint.getName() + "'" +
|
result.text(newText().normal("'" + typeParameterWithCapturedConstraint.getName() + "'" +
|
||||||
" cannot capture " +
|
" cannot capture " +
|
||||||
|
|||||||
+6
-1
@@ -86,6 +86,11 @@ public trait ConstraintSystemStatus {
|
|||||||
*/
|
*/
|
||||||
public fun hasErrorInConstrainingTypes(): Boolean
|
public fun hasErrorInConstrainingTypes(): Boolean
|
||||||
|
|
||||||
//todo comment
|
/**
|
||||||
|
* Returns <tt>true</tt> if a user type contains the type projection that cannot be captured.
|
||||||
|
*
|
||||||
|
* For example, for <pre>fun <T> foo(t: Array<Array<T>>) {}</pre>
|
||||||
|
* in invocation <tt>foo(array)</tt> where array has type <tt>Array<Array<out Int>></tt>.
|
||||||
|
*/
|
||||||
public fun hasCannotCaptureTypesError(): Boolean
|
public fun hasCannotCaptureTypesError(): Boolean
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user