# This same tests the type checker's ability to validate
# types related to coroutines (and async/await) statements.

from typing import Generator, Any, Optional


async def coroutine1():
    return 1


a = coroutine1()

# Wrap the 'await' in an async function
async def main():
    await a

# Call the async function
import asyncio
asyncio.run(main())
