From 382f85fa3923b78156ca70f8607e142c2ca30638 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 18 Jul 2019 18:03:09 +0200 Subject: [PATCH] -live: fix an info message --- compiler/fn.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/fn.v b/compiler/fn.v index 49ec570da0..15c47005e4 100644 --- a/compiler/fn.v +++ b/compiler/fn.v @@ -118,7 +118,7 @@ fn (p mut Parser) fn_decl() { defer { p.fgenln('\n') } is_pub := p.tok == .key_pub is_live := p.attr == 'live' && !p.pref.is_so && p.pref.is_live - if p.attr == 'live' && p.first_run() { + if p.attr == 'live' && p.first_run() && !p.pref.is_live && !p.pref.is_so { println('INFO: run `v -live program.v` if you want to use [live] functions') } if is_pub {