julian
03/17/2022, 7:11 PMrequire
is treated differently by the compiler compared with a project that doesn't use AA. Is this a correct observation?
For example, this, which doesn't explicitly use any AA features,
fun fn() {
val x = 1
require(x == 1)
}
results in a compiler error: could not parse predicate: x == 1
Whereas in a project without AA, there's no compiler error.Alejandro Serrano Mena
03/18/2022, 8:40 AMrequire
blocks as preconditions on the arguments, so they must follow a specific pattern (be first, only mention argument names)Alejandro Serrano Mena
03/18/2022, 8:40 AMjulian
03/18/2022, 4:36 PMRichard Gomez
03/18/2022, 7:31 PMcould not parse predicate
get returned for a variety of circumstances?
I am a mere mortal and probably wouldn't be able to figure out what that error/warning refers to.Alejandro Serrano Mena
03/21/2022, 9:10 AM