diff --git a/src/Authoring/WinRT.SourceGenerator/WinRTTypeWriter.cs b/src/Authoring/WinRT.SourceGenerator/WinRTTypeWriter.cs index 81b69d76e..65cad7823 100644 --- a/src/Authoring/WinRT.SourceGenerator/WinRTTypeWriter.cs +++ b/src/Authoring/WinRT.SourceGenerator/WinRTTypeWriter.cs @@ -1294,7 +1294,7 @@ private void EncodeTypedConstant(TypedConstant constant, LiteralEncoder encoder) break; case TypedConstantKind.Type: - encoder.Scalar().SystemType(constant.Type.ToString()); + encoder.Scalar().SystemType(constant.Value.ToString()); break; case TypedConstantKind.Array: {