Skip to content

Commit

Permalink
readValue() as? Int
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrinneal committed Aug 26, 2024
1 parent 7fe3a02 commit bc675fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pigeon/test/swift_generator_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void main() {
expect(
code,
contains(
'let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int)'));
'let enumResultAsInt: Int? = nilOrValue(self.readValue() as! Int?)'));
expect(code, contains('return Foo(rawValue: enumResultAsInt)'));
expect(code, contains('let fooArg = args[0] as! Foo'));
expect(code, isNot(contains('if (')));
Expand Down

0 comments on commit bc675fa

Please sign in to comment.