From 084f72452fceac1a4973e84370d67fa453da8cc1 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Mon, 30 Mar 2015 08:38:20 +1300 Subject: [PATCH] Fix javadowncast to csdowncast in C# backend See issue#367. --- Source/Modules/csharp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/csharp.cxx b/Source/Modules/csharp.cxx index 1e4eec3bf..b251ff892 100644 --- a/Source/Modules/csharp.cxx +++ b/Source/Modules/csharp.cxx @@ -2004,7 +2004,7 @@ public: good place to put this code, since Abstract Base Classes (ABCs) can and should have downcasts, making the constructorHandler() a bad place (because ABCs don't get to have constructors emitted.) */ - if (GetFlag(n, "feature:javadowncast")) { + if (GetFlag(n, "feature:csdowncast")) { String *downcast_method = Swig_name_member(getNSpace(), proxy_class_name, "SWIGDowncast"); String *wname = Swig_name_wrapper(downcast_method);