Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix Issue 7159 - Forward reference when casting auto return method

  • Loading branch information...
commit 3d5528e985270fe34a7298581df63958c88e506c 1 parent 9609874
@9rnsr 9rnsr authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/runnable/xtest46.d
View
12 test/runnable/xtest46.d
@@ -4911,6 +4911,18 @@ void test7150()
}
/***************************************************/
+// 7159
+
+class HomeController7159 {
+ void* foo() {
+ return cast(void*)&HomeController7159.displayDefault;
+ }
+ auto displayDefault() {
+ return 1;
+ }
+}
+
+/***************************************************/
// 7160
class HomeController {
Please sign in to comment.
Something went wrong with that request. Please try again.