瀏覽代碼

can't use type patterns in inter-type declarations

tags/V_1_1_b2
jhugunin 21 年之前
父節點
當前提交
e9c55d991f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      tests/new/TypeNames.java

+ 3
- 3
tests/new/TypeNames.java 查看文件

@@ -31,9 +31,9 @@ class MySuffix {

aspect A {
// BUG: This is all that's required to provoke the bug in -Xlint mode
public String (*..*Suffix).toString() { // lint: no type matched
return "ok";
}
declare parents: *..*Suffix implements Runnable; // lint: no type matched

// coverage cases
before() : staticinitialization(*..*Suffix) { // lint: no type matched

Loading…
取消
儲存