fork(11) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int? nullableInt = null;
  8. int nowInt = (int)nullableInt;
  9. }
  10. }
Runtime error #stdin #stdout #stderr 0.02s 36320KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception: System.InvalidOperationException: Nullable object must have a value.
  at System.Nullable`1[System.Int32].get_Value () [0x00000] in <filename unknown>:0 
  at Test.Main () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Nullable object must have a value.
  at System.Nullable`1[System.Int32].get_Value () [0x00000] in <filename unknown>:0 
  at Test.Main () [0x00000] in <filename unknown>:0