File tree 3 files changed +2
-3
lines changed
3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public static bool CheckIgnoreMethod(Method method)
30
30
var isEmptyCtor = method . IsConstructor && method . Parameters . Count == 0 ;
31
31
32
32
var @class = method . Namespace as Class ;
33
- if ( @class != null && @class . IsValueType && isEmptyCtor && method . IsDefaulted )
33
+ if ( @class != null && @class . IsValueType && isEmptyCtor && ! @class . HasNonTrivialDefaultConstructor )
34
34
return true ;
35
35
36
36
if ( method . IsDestructor )
Original file line number Diff line number Diff line change @@ -2050,7 +2050,6 @@ public void TestValueTypeStringMemberDefaulted()
2050
2050
}
2051
2051
2052
2052
[ Test ]
2053
- [ Ignore ( "https://github.com/mono/CppSharp/issues/1777" ) ]
2054
2053
public void TestValueTypeStringMemberDefaultedCtor ( )
2055
2054
{
2056
2055
var test = new CSharp . ValueTypeNoCtor ( ) ;
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <LangVersion >10 .0</LangVersion >
3
+ <LangVersion >11 .0</LangVersion >
4
4
</PropertyGroup >
5
5
</Project >
You can’t perform that action at this time.
0 commit comments