Skip to content

where tests nested inside check or where doesn't execute #1513

@JakeWheat

Description

@JakeWheat
check:
  fun fcheck() block:
    1 is 1
    print("1 is 1?")
  where:
    2 is 2
    print("2 is 2?")
  end
  fcheck()
end

fun ftop(a):
  1 == 2
where:
  fun fnestedwhere():
    1
  where:
    3 is 3
    print("3 is 3?")
  end
  4 is 4
  print("4 is 4?")
  fnestedwhere() is 1
end

ftop(1)

output is:

false

1 is 1?

4 is 4?

And the test output confirms that the "1 is 1" and "4 is 4" tests run, but the "2 is 2" and "3 is 3" tests - which are in where blocks that are nested inside another check or where block - don't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions