sway icon indicating copy to clipboard operation
sway copied to clipboard

Internal compiler error when declaring a constant inside a function

Open sarahschwartz opened this issue 9 months ago • 1 comments

The following code throws Internal compiler error: Verification failed: Store value and pointer type mismatch:

fn test_function() -> bool {
      const PROJECT_NAME = "fuel";
      true
  }

sarahschwartz avatar May 22 '24 12:05 sarahschwartz