Skip to content

Commit

Permalink
Migrate header/impl to expect/actual
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Mashkov committed Nov 16, 2017
1 parent bb9fd5b commit 2f96557
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/src/main/kotlin/utilsImpl-js.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package kotlinx.html

import kotlin.js.Date

impl fun currentTimeMillis(): Long = Date().getTime().toLong()
actual fun currentTimeMillis(): Long = Date().getTime().toLong()
2 changes: 1 addition & 1 deletion jvm/src/main/kotlin/utilsImpl-jvm.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package kotlinx.html

impl fun currentTimeMillis(): Long = System.currentTimeMillis()
actual fun currentTimeMillis(): Long = System.currentTimeMillis()
2 changes: 1 addition & 1 deletion shared/src/main/kotlin/Event.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.w3c.dom.events

@Suppress("HEADER_WITHOUT_IMPLEMENTATION", "NO_ACTUAL_FOR_EXPECT")
header interface Event {
expect interface Event {
fun stopPropagation()
fun preventDefault()

Expand Down
2 changes: 1 addition & 1 deletion shared/src/main/kotlin/util.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ val Tag.br : Unit
consumer.onTagEnd(tag)
}

header fun currentTimeMillis(): Long
expect fun currentTimeMillis(): Long

0 comments on commit 2f96557

Please sign in to comment.