Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriscbr committed Sep 25, 2024
1 parent 7e4318a commit 758c350
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/@winglang/sdk/src/std/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ export class Type implements ILiftable {
return new Type("function", f);
}

/**
* What kind of type this is.
*/
public readonly kind: string;
private readonly data: ILiftable | undefined;

Expand Down Expand Up @@ -379,6 +382,7 @@ export class StructType implements ILiftable {
", "
)})`;
}

public toString(): string {
return this.name;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/valid/type_intrinsic.test.w
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ test "@type in inflight" {
expect.fail("t4 is not a function");
}

// skip t5 since preflight functions since we don't have a way to represent a preflight function type annotation in inflight
// skip t5 since we don't have a way to represent a preflight function type annotation in inflight

let t6 = @type(void);
expect.equal(t6.kind, "void");
Expand Down

0 comments on commit 758c350

Please sign in to comment.