Skip to content

Conversation

@muukii
Copy link
Contributor

@muukii muukii commented Mar 9, 2025

  @Test
  func weakRef() {
    
    let state = MyState.init()
    
    let result = state.tracking {
      _ = state.weak_ref
    }
    
    #expect(
      result.graph.prettyPrint() == """
        StateStructTests.MyState {
          weak_ref-(1)
        }
        """
    )
  }

@muukii muukii marked this pull request as ready for review March 9, 2025 09:10
@muukii muukii merged commit 4c83462 into main Mar 9, 2025
1 check passed
@muukii muukii deleted the muukii/support-weak branch March 9, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants