Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix Issue 7159 - Forward reference when casting auto return method

  • Loading branch information...
commit a9bb24772b47cef1df237c7fdf95c52e3c27c418 1 parent 5fa49c1
@9rnsr 9rnsr authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/runnable/xtest46.d
View
12 test/runnable/xtest46.d
@@ -4862,6 +4862,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.