moved submodules into this project
This commit is contained in:
19
tools/js2dart/spec/annotations_spec.js
Normal file
19
tools/js2dart/spec/annotations_spec.js
Normal file
@ -0,0 +1,19 @@
|
||||
import annotations from './fixtures/annotations';
|
||||
|
||||
class Inject {}
|
||||
class Bar {}
|
||||
|
||||
@annotations.Provide('Foo')
|
||||
class Foo {
|
||||
@Inject
|
||||
constructor() {}
|
||||
}
|
||||
|
||||
@annotations.Provide(Foo)
|
||||
function baz() {}
|
||||
|
||||
function annotatedParams(@Inject(Foo) f, @Inject(Bar) b) {}
|
||||
|
||||
function main() {
|
||||
annotations.main();
|
||||
}
|
Reference in New Issue
Block a user