Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
ef90033b
Commit
ef90033b
authored
9 years ago
by
Anna Kozlova
Browse files
Options
Download
Email Patches
Plain Diff
testdata
parent
af014cf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/graphInference/CapturedVariablesAcceptance.java
+17
-0
...er/lambda/graphInference/CapturedVariablesAcceptance.java
java/java-tests/testSrc/com/intellij/codeInsight/daemon/lambda/GraphInferenceHighlightingTest.java
+4
-0
...Insight/daemon/lambda/GraphInferenceHighlightingTest.java
with
21 additions
and
0 deletions
+21
-0
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/graphInference/CapturedVariablesAcceptance.java
0 → 100644
+
17
-
0
View file @
ef90033b
import
java.util.List
;
class
Foo
<
K
>
{
static
<
E
>
Foo
<
E
>
from
(
Iterable
<?
extends
E
>
iterable
)
{
return
null
;
}
void
m
(
Iterable
<?
extends
String
>
arguments
,
List
<
String
>
list
){
from
(
arguments
).
append
<
error
descr
=
"'append(java.lang.Iterable<? extends capture<? extends java.lang.String>>)' in 'Foo' cannot be applied to '(java.util.List<java.lang.String>)'"
>(
list
)</
error
>;
}
Foo
<
K
>
append
(
Iterable
<?
extends
K
>
other
)
{
return
null
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
java/java-tests/testSrc/com/intellij/codeInsight/daemon/lambda/GraphInferenceHighlightingTest.java
+
4
-
0
View file @
ef90033b
...
...
@@ -395,6 +395,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
doTest
();
}
public
void
testCapturedVariablesAcceptance
()
throws
Exception
{
doTest
();
}
private
void
doTest
()
throws
Exception
{
doTest
(
false
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help