async: annoying warning for future.finished #4948

Closed
cheatfate opened this Issue Oct 24, 2016 · 0 comments

Projects

None yet

2 participants

@cheatfate
Contributor

Compilation of this code

import asyncdispatch

proc someProc(): Future[int] =
  var retFuture = newFuture[int]("someProc.future")
  retFuture.complete(0)
  return retFuture

var a = someProc()

echo a.finished

causes

lib/pure/includes/asyncfutures.nim(202, 13) Hint: conversion from Future[system.int] to itself is pointless [ConvFromXtoItselfNotNeeded]
@Araq Araq added Stdlib async labels Oct 26, 2016
@Araq Araq added a commit that closed this issue Jan 6, 2017
@Araq Araq fixes #4948 75b7756
@Araq Araq closed this in 75b7756 Jan 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment