Avoid calling descriptors.toString() in production code without need

This commit is contained in:
Nikolay Krasko
2014-11-05 22:15:13 +03:00
parent 656bd028bc
commit 0568cc7ee7
2 changed files with 1 additions and 5 deletions
@@ -87,7 +87,7 @@ private fun <Function : FunctionHandle> findAllReachableDeclarations(function: F
* The implementation is guaranteed to exist because if it wouldn't, the given function would've been abstract
*/
private fun <Function : FunctionHandle> findConcreteSuperDeclaration(function: Function): Function {
require(!function.isAbstract, "Only concrete functions have implementations: $function")
require(!function.isAbstract, { "Only concrete functions have implementations: $function" })
if (function.isDeclaration) return function