# Why is it an error?

**URL:** <https://discuss.kotlinlang.org/t/why-is-it-an-error/17307>\
**Category:** Uncategorized\
**Created:** [April 24, 2020, 5:52am UTC](https://discuss.kotlinlang.org/t/why-is-it-an-error/17307 "2020-04-24T05:52:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juanmrbnero](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@Juanmrbnero](https://discuss.kotlinlang.org/u/Juanmrbnero)\
**Post date:** [April 24, 2020, 5:52am UTC](https://discuss.kotlinlang.org/t/why-is-it-an-error/17307/1 "2020-04-24T05:52:17Z")

</div>

Hi guys I started learning kotlin today and got an error when I run this code on the IntelliJ Idea.

fun say(a: String, b: String):Unit{  
println(“$a $b”);  
}  
fun main() {  
say("Hello ",“world”);  
}

But when I use it on the kotlin page compiler it works well.  
Why is that? And if I want to use android studio should I focus more on intelli or the kotlin page?

---

<div class="post-metadata">

**Author:** ![gidds](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/gidds/32/10865_2.png) [@gidds](https://discuss.kotlinlang.org/u/gidds)\
**Post date:** [April 24, 2020, 6:57am UTC](https://discuss.kotlinlang.org/t/why-is-it-an-error/17307/2 "2020-04-24T06:57:00Z")

</div>

What error do you get?

(And did the penultimate line really have curly quotes, or is that just a problem with how you pasted the code here?)
