Hey! I have the following code: ``` fun adminCance...
# intellij
v
Hey! I have the following code:
Copy code
fun adminCancelCustomerLock() {
		val admin = createAdmin()
		openCustomerWithUser(admin)
		customerPage.cancelLock()
		customerPage.lockConfigurationBtn()
		customerPage.lockBanner()
	}
When I put a caret on any of
customerPage
and hit Option+Enter -> Convert to run, then it transforms to:
Copy code
fun adminCancelCustomerLock() {
		val admin = createAdmin()
		openCustomerWithUser(admin)
		customerPage.run {
			openCustomerWithUser(admin)
			cancelLock()
			lockConfigurationBtn()
			lockBanner()
		}
	}
So, why it puts the
openCustomerWithUser(admin)
inside the
run
block if it wasn’t called on
customerPage
instance? A bug, perhaps?
a
Definitely a bug. Please file to http://kotl.in/issue with a self-contained code example to reproduce. Thanks!
👍 1