Permalink
Browse files

[Compiler] Fix get-only autoproperty typing.

git-svn-id: https://nemerle.googlecode.com/svn/nemerle/trunk@9908 c8a6711f-211a-0410-a8d5-2f220496d6d1
  • Loading branch information...
1 parent 6df70ff commit 26e8076d5a44a341d9d238bb7ab77886ce375d7e @someone-with-default-username someone-with-default-username committed Jun 20, 2011
View
@@ -1,6 +1,7 @@

-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+# SharpDevelop 3.2.0.5777
Project("{EDCC3B85-0BAD-11DB-BC1A-00112FDE8B61}") = "Nemerle", "Nemerle.nproj", "{0C558E35-7DF9-4A68-9015-B316DD59C0CB}"
EndProject
Project("{EDCC3B85-0BAD-11DB-BC1A-00112FDE8B61}") = "Nemerle.Macros", "Nemerle.Macros.nproj", "{0C558E37-7DF9-4A68-9015-B316DD59C0CB}"
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -3145,7 +3145,7 @@ namespace Nemerle.Compiler
propBuilder.IsAutoProperty
&& !propBuilder.CanWrite
&& CurrentMethodBuilder.IsConstructor
- && CurrentMethodBuilder.DeclaringType.Equals(tc) =>
+ && CurrentMethodBuilder.DeclaringType.Equals(propBuilder.DeclaringType) =>
// For get-only autoproperty use the field instead of property itself
// when used in constructor.
// This allows to initializing get-only autoproperties.

0 comments on commit 26e8076

Please sign in to comment.