Logger.nonull should not accept a struct to check for null.
This commit is contained in:
1 parent
712b3dee1c
commit
5f1432057d
1 file changed
+1
-1
@@ -87,7 +87,7 @@ namespace mbts
|
||||
}
|
||||
}
|
||||
|
||||
public static void notnull(object o) {
|
||||
public static void notnull<T>(T o) where T : class {
|
||||
assert(o != null);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user