Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
6d9327a7
Commit
6d9327a7
authored
7 years ago
by
Anna.Kozlova
1
Browse files
Options
Download
Email Patches
Plain Diff
lvti: additional test data for projections
parent
3ef146e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advLVTI/UpwardProjection.java
+16
-3
...eInsight/daemonCodeAnalyzer/advLVTI/UpwardProjection.java
with
16 additions
and
3 deletions
+16
-3
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advLVTI/UpwardProjection.java
+
16
-
3
View file @
6d9327a7
...
...
@@ -34,13 +34,26 @@ class Main {
e
[
0
].
add
<
error
descr
=
"'add(capture<? extends java.lang.String>)' in 'X' cannot be applied to '(java.lang.String)'"
>(
""
)</
error
>;
}
void
fooHierarchy
(
X
<?
extends
B
,
A
>
x
)
{
var
y
=
x
;
y
=
new
X
<
B
,
A
>();
y
=
new
X
<
C
,
A
>();
A
a
=
y
.
get
();
B
b
=
y
.
get
();
<
error
descr
=
"Incompatible types. Found: 'capture<? extends B>', required: 'C'"
>
C
c
=
y
.
get
();</
error
>
}
<
M
>
M
[]
m
(
M
m
)
{
return
null
;
}
}
abstract
class
X
<
T
extends
S
,
S
>
{
abstract
T
get
();
abstract
void
add
(
T
t
);
class
A
{}
class
B
extends
A
{}
class
C
extends
B
{}
class
X
<
T
extends
S
,
S
>
{
T
get
()
{
return
null
;}
void
add
(
T
t
)
{}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
c8d99aef
·
2 years ago
mentioned in commit
c8d99aef
mentioned in commit c8d99aef905466febe9f246a5d1bc3518d7ac017
Toggle commit list
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