diff --git a/tests/tc_ufcs_struct_completion/file.d b/tests/tc_ufcs_struct_completion/file.d index 4c7f6b8..0ea9005 100644 --- a/tests/tc_ufcs_struct_completion/file.d +++ b/tests/tc_ufcs_struct_completion/file.d @@ -1,4 +1,3 @@ -//import foodata; import fooutils; void hasArgname(Foo f){ @@ -8,3 +7,8 @@ void main() auto foo = Foo(); foo. } + +void aliasStruct() { + auto intAliased = IntAliased(); + intAliased. +} diff --git a/tests/tc_ufcs_struct_completion/fooutils/fooutils.d b/tests/tc_ufcs_struct_completion/fooutils/fooutils.d index 6f8b662..334c19c 100644 --- a/tests/tc_ufcs_struct_completion/fooutils/fooutils.d +++ b/tests/tc_ufcs_struct_completion/fooutils/fooutils.d @@ -4,6 +4,11 @@ struct Foo { void fooHey(){} } +struct IntAliased { + int x; + alias x this; +} + void u(Foo foo) {} void ufcsHello(ref Foo foo) {} void ufcsBar(Foo foo, string mama) {} @@ -13,4 +18,5 @@ void ufcsBarRefConstWrapped(ref const(Foo) foo, string mama) {} void ufcsBarRefImmuttableWrapped(ref immutable(Foo) foo, string mama) {} void ufcsBarScope(ref scope Foo foo, string mama) {} void ufcsBarReturnScope(return scope Foo foo, string mama) {} +void ufcsSomeInt(int x) {} private void ufcsBarPrivate(Foo foo, string message) {} \ No newline at end of file diff --git a/tests/tc_ufcs_struct_completion/run.sh b/tests/tc_ufcs_struct_completion/run.sh index 5c8a62a..ac90554 100755 --- a/tests/tc_ufcs_struct_completion/run.sh +++ b/tests/tc_ufcs_struct_completion/run.sh @@ -1,5 +1,8 @@ set -e set -u -../../bin/dcd-client $1 -c100 -I"$PWD"/fooutils file.d > actual.txt -diff actual.txt expected.txt \ No newline at end of file +../../bin/dcd-client $1 -c82 -I"$PWD"/fooutils file.d > actual_struct_test.txt +diff actual_struct_test.txt expected_struct_test.txt + +../../bin/dcd-client $1 -c152 -I"$PWD"/fooutils file.d > actual_aliased_struct_test.txt +diff actual_aliased_struct_test.txt expected_aliased_struct_test.txt \ No newline at end of file