diff options
Diffstat (limited to 'tests/language-server/smoke.slang')
| -rw-r--r-- | tests/language-server/smoke.slang | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/language-server/smoke.slang b/tests/language-server/smoke.slang new file mode 100644 index 000000000..194902586 --- /dev/null +++ b/tests/language-server/smoke.slang @@ -0,0 +1,33 @@ +//TEST(smoke):LANG_SERVER: +//COMPLETE:31,21 +//HOVER:25,30 +//SIGNATURE:25,40 +interface IFoo +{ + /** + Returns the sum of the contents. + */ + int getSum(); +} + +struct MyType : IFoo +{ + int getSum() { return 0; } +} + +struct Pair<T:IFoo, U: IFoo> : IFoo +{ + T first; + U second; + /** + Returns the sum of the contents. + */ + int getSum() { return first.getSum() + second.getSum(); } +} + +void m() +{ + Pair<MyType, Pair<MyType, MyType>> v; + v.first = v.second.first; + +} |
