fix(dart): @proxy is a value, not a factory
Previously I added parens everywhere to make this @proxy() because our typing indicated it was a function that returned a decorator, but this breaks dart. Instead, the typing needs to be changed. Fixes #3494
This commit is contained in:
@ -58,7 +58,7 @@ export function main() {
|
||||
});
|
||||
}
|
||||
|
||||
@proxy()
|
||||
@proxy
|
||||
@IMPLEMENTS(ElementRef)
|
||||
class SpyElementRef extends SpyObject {
|
||||
nativeElement;
|
||||
@ -66,7 +66,7 @@ class SpyElementRef extends SpyObject {
|
||||
noSuchMethod(m) { return super.noSuchMethod(m) }
|
||||
}
|
||||
|
||||
@proxy()
|
||||
@proxy
|
||||
@IMPLEMENTS(DomAdapter)
|
||||
class SpyDomAdapter extends SpyObject {
|
||||
constructor() { super(DomAdapter); }
|
||||
|
Reference in New Issue
Block a user