untoldwind / KontrolSystem2

Autopilot scripting system for KSP2
Other
54 stars 14 forks source link

Option<T> struct fields initialized to None don't typecheck #104

Closed kbleeke closed 3 months ago

kbleeke commented 6 months ago
struct Foo() {
    bar: Option<float> = None()
}

results in

Rebooted in 00:00:01.7274704

ERROR: [test.to2(13, 26)] InvalidType
Unable to infer generic argument T of KontrolSystem.TO2.Runtime.Option`1[T] None[T]()

ERROR: [test.to2(12, 1)] IncompatibleTypes
Expected item bar of Foo to be a Option<float>, found Option<T>
untoldwind commented 6 months ago

Should now work in 0.5.1.1

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] commented 3 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.