a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
398 B
C#
30 lines
398 B
C#
// Compiler options: -r:gtest-exmethod-26-lib.dll
|
|
|
|
using System;
|
|
using Test2;
|
|
using test;
|
|
|
|
namespace test
|
|
{
|
|
internal static class TypeExtensions
|
|
{
|
|
public static bool IsNullable (this Type t)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
namespace testmono
|
|
{
|
|
class MainClass
|
|
{
|
|
public static void Main ()
|
|
{
|
|
string s = "";
|
|
if (s.GetType ().IsNullable ()) {
|
|
Console.WriteLine ("aaa");
|
|
}
|
|
}
|
|
}
|
|
}
|