blob: 366d2cf9876fa7c261aae6e8b30abbd8eb1550e1 [file]
abstract class Foo {
protected int field;
public int f(Bar t){
((<warning descr="Casting 't' to 'Foo' is redundant">Foo</warning>)t).field = 0;
return ((<warning descr="Casting 't' to 'Foo' is redundant">Foo</warning>)t).field;
}
}
class Bar extends Foo{}