Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatibilize spec with language-switching compilers
6.c spec does not define how language switching is to behave, and that is still largely undefined and lacks a PoV in 6.d spec due to blockage by R#1289[^1]. The rudimentary PoV for language switching currently does not propage the active language version to EVALed code, and so `throws-like` tests with stringy code continue using default compiler's language version. Were that to be defined as the behaviour for language switching, then the tests being modified by this commit would be deemed wrong, as they do not set correct lang version. The same would actually apply to all `throws-like` tests with Str argument. It's more likely that this behaviour will be deemed unwanted and language switching will be defined in a way that lets EVAL use caller's lang ver. Since R#1289 isn't a trivial issue, I'm going to correct just these couple of tests until language switching behaviour is more fully defined. The change in a test module to move the version as first line is also part of undefinedness of lang switching, which is now more well-defined and makes it a requirement the lang is the first statement in code. [1] rakudo/rakudo#1289 [2] https://colabti.org/irclogger/irclogger_log/perl6-dev?date=2018-10-27#l140
- Loading branch information