mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
interface I {
|
||||
boolean <caret>isFoo();
|
||||
}
|
||||
|
||||
class RRR implements I {
|
||||
public boolean isFoo() {
|
||||
return true;
|
||||
}
|
||||
|
||||
{
|
||||
boolean foo = isFoo();
|
||||
}
|
||||
|
||||
void g(I i) {
|
||||
boolean foo = i.isFoo();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
interface I {
|
||||
boolean isFooInverted();
|
||||
}
|
||||
|
||||
class RRR implements I {
|
||||
public boolean isFooInverted() {
|
||||
return false;
|
||||
}
|
||||
|
||||
{
|
||||
boolean foo = !isFooInverted();
|
||||
}
|
||||
|
||||
void g(I i) {
|
||||
boolean foo = !i.isFooInverted();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
interface I {
|
||||
boolean isFoo();
|
||||
}
|
||||
|
||||
class RRR implements I {
|
||||
public boolean <caret>isFoo() {
|
||||
return true;
|
||||
}
|
||||
|
||||
{
|
||||
boolean foo = isFoo();
|
||||
}
|
||||
|
||||
void g(I i) {
|
||||
boolean foo = i.isFoo();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
interface I {
|
||||
boolean isFoo();
|
||||
}
|
||||
|
||||
class RRR implements I {
|
||||
public boolean isFooInverted() {
|
||||
return false;
|
||||
}
|
||||
|
||||
{
|
||||
boolean foo = !isFooInverted();
|
||||
}
|
||||
|
||||
void g(I i) {
|
||||
boolean foo = i.isFoo();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class InvertBooleanParameterTest {
|
||||
void foo(boolean <caret>b) {
|
||||
boolean c = !b;
|
||||
}
|
||||
|
||||
{
|
||||
foo(true);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
class InvertBooleanParameterTest {
|
||||
void foo(boolean <caret>b) {
|
||||
boolean c = !b;
|
||||
b = false;
|
||||
}
|
||||
|
||||
{
|
||||
foo(true);
|
||||
}
|
||||
}
|
||||
|
||||
class Drv extends InvertBooleanParameterTest {
|
||||
void foo(boolean b) {
|
||||
super.foo(b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
class InvertBooleanParameterTest {
|
||||
void foo(boolean bInverted) {
|
||||
boolean c = bInverted;
|
||||
bInverted = true;
|
||||
}
|
||||
|
||||
{
|
||||
foo(false);
|
||||
}
|
||||
}
|
||||
|
||||
class Drv extends InvertBooleanParameterTest {
|
||||
void foo(boolean bInverted) {
|
||||
super.foo(bInverted);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class InvertBooleanParameterTest {
|
||||
void foo(boolean bInverted) {
|
||||
boolean c = bInverted;
|
||||
}
|
||||
|
||||
{
|
||||
foo(false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user