Minor: added a comment

This commit is contained in:
Svetlana Isakova
2014-12-23 20:11:58 +03:00
parent 74a08c9747
commit 7daf9b53ce
2 changed files with 7 additions and 2 deletions
@@ -421,7 +421,7 @@ public class Renderers {
" that cannot be satisfied capturing 'in' projection";
}
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() + "'" +
" cannot capture " +
@@ -86,6 +86,11 @@ public trait ConstraintSystemStatus {
*/
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 &lt;T&gt; foo(t: Array&lt;Array&lt;T&gt;&gt;) {}</pre>
* in invocation <tt>foo(array)</tt> where array has type <tt>Array&lt;Array&lt;out Int&gt;&gt;</tt>.
*/
public fun hasCannotCaptureTypesError(): Boolean
}