Skip to content

Commit ddd40a3

Browse files
committed
Add parent type reference to opaque types.
1 parent 4b2946b commit ddd40a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/src/main/scala/io/kaitai/struct/languages/CSharpAsyncCompiler.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ class CSharpAsyncCompiler(val typeProvider: ClassTypeProvider, config: RuntimeCo
384384
}
385385
s", $parent, ${privateMemberName(RootIdentifier)}$addEndian"
386386
}
387-
s"await (new ${types2class(t.name)}($addParams$io$addArgs)).ReadAsync()"
387+
s"await (new ${types2class(t.name)}(this, $addParams$io$addArgs)).ReadAsync()"
388388
}
389389
}
390390

0 commit comments

Comments
 (0)