Skip to content

Commit 94b4332

Browse files
committed
use Exports error
1 parent 282a2c4 commit 94b4332

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/runtime/results/intermediate.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static float RecordError(float a)
2121
try {
2222
return Imports.test.results.ITestImports.RecordError(a);
2323
} catch (WitException<Imports.test.results.ITestImports.E2> e) {
24-
throw new WitException(new Imports.test.results.ITestImports.E2(e.TypedValue.line, e.TypedValue.column), 0);
24+
throw new WitException(new ITestExports.E2(e.TypedValue.line, e.TypedValue.column), 0);
2525
}
2626
}
2727

@@ -31,10 +31,10 @@ public static float VariantError(float a)
3131
return Imports.test.results.ITestImports.VariantError(a);
3232
} catch (WitException<Imports.test.results.ITestImports.E3> e)
3333
when (e.TypedValue.Tag == Imports.test.results.ITestImports.E3.Tags.E1) {
34-
throw new WitException(Imports.test.results.ITestImports.E3.E1((Imports.test.results.ITestImports.E)Enum.Parse(typeof(Imports.test.results.ITestImports.E), e.TypedValue.AsE1.ToString())), 0);
34+
throw new WitException(ITestExports.E3.E1((ITestExports.E)Enum.Parse(typeof(ITestExports.E), e.TypedValue.AsE1.ToString())), 0);
3535
} catch (WitException<Imports.test.results.ITestImports.E3> e)
3636
when (e.TypedValue.Tag == Imports.test.results.ITestImports.E3.Tags.E2) {
37-
throw new WitException(Imports.test.results.ITestImports.E3.E2(new Imports.test.results.ITestImports.E2(e.TypedValue.AsE2.line, e.TypedValue.AsE2.column)), 0);
37+
throw new WitException(ITestExports.E3.E2(new ITestExports.E2(e.TypedValue.AsE2.line, e.TypedValue.AsE2.column)), 0);
3838
}
3939
catch {
4040
throw new Exception("unreachable");

0 commit comments

Comments
 (0)