Skip to content

Commit

Permalink
Fix .bad file now skipping warning for fields in owned
Browse files Browse the repository at this point in the history
---
Signed-off-by: Michael Ferguson <[email protected]>
  • Loading branch information
mppf committed Jul 18, 2023
1 parent a13d253 commit d9f0142
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/studies/adventOfCode/2021/bradc/futures/day18-bug2.bad
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
day18-bug2.chpl:26: warning: please use '?' when declaring a variable with generic type
day18-bug2.chpl:26: note: for example with 'Node(?)'
$CHPL_HOME/modules/internal/OwnedObject.chpl:41: warning: please use '?' when declaring a field with generic type
$CHPL_HOME/modules/internal/OwnedObject.chpl:41: note: for example with 'Node(?)'
$CHPL_HOME/modules/internal/OwnedObject.chpl:50: In initializer:
$CHPL_HOME/modules/internal/OwnedObject.chpl:55: error: Could not coerce 'nil' to 'borrowed Node?' in initialization
$CHPL_HOME/modules/internal/OwnedObject.chpl:130: called as owned.init(type chpl_t = borrowed Node?)
Expand Down

0 comments on commit d9f0142

Please sign in to comment.