-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
🐛bugClearly not working as expectedClearly not working as expected
Description
Currently, a malformed PostDoc like the following will set the resulting value to null.
public class Test {
public int value;
// Invalid because we expect this to return a Test instance
public void PostDoc(Test existing) {
if (existing.value > 42) {
throw new Exception("Value too high!");
}
}
}
...
DocNode Doc = ...;
Test readValue = Doc.As<Test>(); // This is always set to null
DarkConfig should throw an exception when scanning for PostDoc functions and finding one with a signature that doesn't match what it's expecting.
Metadata
Metadata
Assignees
Labels
🐛bugClearly not working as expectedClearly not working as expected