Browse files

Allow usage of base.MethodBase() in struct methods

  • Loading branch information...
xoofx committed Sep 27, 2015
1 parent 421c0be commit 0671169a92a0c4519af81dc89995d5134440777b
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Compilers/CSharp/Portable/CodeGen/EmitAddress.cs
@@ -75,7 +75,8 @@ private LocalDefinition EmitAddress(BoundExpression expression, AddressKind addr
throw ExceptionUtilities.UnexpectedValue(expression.Kind);

case BoundKind.BaseReference:
Debug.Assert(false, "base is always a reference type, why one may need a reference to it?");
Debug.Assert(expression.Type.IsValueType, "only value types may need a ref to base");

case BoundKind.Sequence:

0 comments on commit 0671169

Please sign in to comment.