57f8ef372f
Previously if you had kotlin-reflect 1.0 and kotlin-runtime 1.1 in the classpath, checkCompatibleWithApiVersion was invoked first, and an error was reported that suggested to pass "-api-version" to the compiler. However, no correct "-api-version" can be passed in this case, because checkMatchingVersions would then report that the two libraries have different versions anyway. So, now we first ensure that all libraries have the same version, and only then do check if the version is correct